<%@ include file="taglibs.jsp"%>
<% String ctxPathMessage = request.getContextPath();%>
<div id="message">
  <div class="errors">
    <logic-el:messagesPresent>
      <img src="<%=ctxPathMessage%>/images/fail.gif" width="16px" height="16px" align="absmiddle" />
      <html-el:messages id="errors" >
        <c:out value="${errors}" escapeXml="false"/>&nbsp;
      </html-el:messages>
    </logic-el:messagesPresent>
  </div>
  <div class="messages">
    <logic-el:messagesPresent message="true">
      <img src="<%=ctxPathMessage%>/images/success.gif" width="15px" height="15px" align="absmiddle" />
      <html-el:messages id="messages" message="true" >
        <c:out value="${messages}" escapeXml="false"/>&nbsp;
      </html-el:messages>
    </logic-el:messagesPresent>
  </div>
</div>